package com.example.study.manager_plus.mybatis_plus.service.impl;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.example.study.manager_plus.mybatis_plus.entity.WarnRule;
import com.example.study.manager_plus.mybatis_plus.mapper.WarnRuleMapper;
import com.example.study.manager_plus.mybatis_plus.service.WarnRuleService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author 路飞4
 * @since 2024-07-14
 */
@DS("slave_2")
@Service
public class WarnRuleServiceImpl extends ServiceImpl<WarnRuleMapper, WarnRule> implements WarnRuleService {

    @Override
    public int add(WarnRule warnRule) {
        return baseMapper.insert(warnRule);
    }
}
